package com.erp.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.erp.commands.login.LoginCommand;
	import com.erp.commands.groupuser.GroupCommand;
	import com.erp.control.BaseEvent;

	public class BaseController extends FrontController
	{
		public function BaseController()
		{
			initCommands();
		}

		/**注册Command*/
		private function initCommands():void
		{
			//用户登录
			addCommand(BaseEvent.LOGIN_USER, LoginCommand);
			//添加组
			addCommand(BaseEvent.GROUP_ADD, GroupCommand);
			addCommand(BaseEvent.GROUP_USER_TREE, GroupCommand);
		}
	}
}